/*
 * @Author: chen haoxuan
 * @Date: 2021-05-25 19:14:13
 * @LastEditTime: 2021-05-25 19:36:43
 */
#include<iostream>
using namespace std;
class Complex
{
    public:
        Complex(){real=0;imag=0;}
        friend istream& operator >>(istream& ,Complex &);
        friend ostream& operator <<(ostream& ,Complex &);
        operator double(){return real;}
    private:
        double real;
        double imag;
};
istream& operator >>(istream& input,Complex &c)
{
    cout<<"Please enter a complex : "<<endl;
    input>>c.real>>c.imag;
    return input;
}
ostream& operator <<(ostream& output,Complex &c)
{
    output<<"("<<c.real<<"+"<<c.imag<<"i)";
    return output;
}
int main()
{
    double dl;
    Complex c1;
    cin>>c1;
    dl=3.4+c1;
    cout<<dl;
    
    system("pause");
    return 0;
}